{% extends "base.html" %}

<body>
{% block header %}
{% include "flow-menu.html" %}
{% endblock %}

{% block content %}
<div class="wrap">
	{% include "tree.html" %}
	<div class="wrap_left right">
		<div class="shenqing1">
	        <h5 style="float:left;width:96%;margin-bottom:10px;">流程管理</h5>
	        <form action="/alert/search" method="post">
		        <input type="text" name="key" class="word_in"/>
		   	    <input type="submit" value="搜索" class="btn_search"/>
			</form>
	   	    <a href="/flow/add/" class="new_zeng" >新增操作单</a>
   	  	</div>
		<div class="tab_nav">
			<a href="/flow/">待处理操作单</a>
			<a href="#">|</a>
			<a href="/flow/my/">我的操作单</a>
			<a href="#">|</a>
			<a href="/flow/all/">所有操作单</a>
		</div>
		<div class="biaoge">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="table2">
				<tr>
					<th width="2%">ID</th>
					<th width="20%">上线单名称</th>
					<th width="11%">所属服务</th>
					<th width="10%">审核人</th>
					<th width="14%">状态</th>
					<th width="10%">操作人</th>
					<th width="18%">开始时间</th>
					<th width="15%">操作</th>
				</tr>
				{% for l in todoList %}
				<tr class="{% cycle 'g1' 'g2' %}">
				    <td class="td_left"><span class="first style1">{{ l.id}}</span></td>
				    <td class="td_mid">{{ l.tname }}</td>
				    <td>{{ l.pid }}</td>
				    <td>{{ l.send_uid }}</td>
				    <td><a href="/flow/flowaction/{{ l.id }}/{{l.status}}/">{{ l.oprate}}</a></td>
				    <td><img src="/static/img/save-icon.gif" width="16" height="16" alt="save" /></td>
				    <td>{{ l.timestamp|date:"Y-m-d H:i:s" }}</td>
				    <td><img src="/static/img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
				</tr>
				{% endfor %}
			</table>
		<div class="page_w">
			<div class="page_font">总共{{count}}条记录</div>
			<div class="page_r">
			    <ul>
				    <li>
					    <select class="frist" onchange="javascript:window.location.href=this.options[this.selectedIndex].value;">
					    {% for p in page_list %}
					    	<option value="/host?page={{p}}">第{{p}}页</option>
					    {% endfor %}
					    </select>
				    </li>
				    <li>每页{{num}}条,共{{page_num}}页</li>  
				    <li><a href="/host?page={{page_num}}" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><ins>末页</ins><img src="/static/img/new/page_ico4.gif" /></span></a></li>
				    <li><a href="/host?page={{page_down}}" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><ins>下一页</ins><img src="/static/img/new/page_ico3.gif"/></span></a></li>
				    <li><a href="/host?page={{page_up}}" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><img src="/static/img/new/page_ico2.gif"/><ins>上一页</ins></span></a></li>
				    <li><a href="/host" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><img src="/static/img/new/page_ico1.gif"/><ins>首页</ins></span></a></li>
			    </ul>
			</div>
	    </div>
	</div>
</div>
{% endblock %}

</body>
</html>
